package org.hdax.easybuyorder.fallback;

import org.hdax.easybuyorder.client.UserClient;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

@Component
public class UserClientImpl implements UserClient {
    @Override
    public Object findById(Integer id) {
        Map<String,String> map = new HashMap<>();
        map.put("id","1");
        map.put("username","hdax");
        return map;
    }
}
